package com.cyj.dream.core.constant.pagemodel;

import java.util.List;

/**
 * @Description: 分页 wrapper
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.core.constant.pagemodel
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-26 10:28
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public class PageWrapper<T> {

    private long pageNum;
    private long pageSize;
    private long totalPage;
    private long total;
    private List<T> data;

    public PageWrapper() {
    }

    public PageWrapper(int pageNum, int pageSize, long totalPage, long total, List<T> data) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalPage = totalPage;
        this.total = total;
        this.data = data;
    }

    public long getPageNum() {
        return pageNum;
    }

    public void setPageNum(long pageNum) {
        this.pageNum = pageNum;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(long totalPage) {
        this.totalPage = totalPage;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

}
